<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>

<probiz:pageHeading pageHeadingKey="menu.appAdminList" />
<content tag="buttons">
	<probiz:iconBtn btnType="add" onclick="createAppAdmin();" />
	<probiz:iconBtn btnType="save" id="multiSave" onclick="multiSaveAppAdmins();" />
	<probiz:iconBtn btnType="delete" id="multiDelete" onclick="deleteAppAdmins();" />
</content>


<div id="appAdminList">
	<%@include file="include/appAdminSearchCriteria.jspf"%>
	<div id="appAdminResults" name="appAdminResults">
		<%--ajaxLoad file="/customer/include/appAdminListBody.jspf" --%>
		<%@include file="include/appAdminSearchCriteriaStorage.jspf"%>
	</div>
</div>

<%---------------------------------start:重设密码 -------------------------%>
<div style="display:none">
	<fmt:message key="button.save" var="buttonSave"/>
	<fmt:message key="button.cancel" var="buttonCancel"/>
	<fmt:message key="appUser.password.reset.title" var="title"/>
	<probiz:ui_dialog id="resetPasswordDialog" width="640" height="220" title="${title}"
		url="${ctxPath}/system/appAdmin/dialog.html?doAction=resetPassword" buttons="'${buttonSave}':saveResetPassword,'${buttonCancel}':dlgresetPasswordDialog_close" />
</div>
<%---------------------------------end:  重设密码 -------------------------%>



<%-----start:list需要加载的JS ----%>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/system/appAdminList.js?rs=${appConfig.rs}"></script>

<%-----end:  list需要加载的JS ----%>

<%-----start:form需要加载的JS ----%>
<c:set var="ui_dialog" value="true" scope="request"/>
<c:set var="ui_tabs" value="true" scope="request"/>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/system/appAdminForm.js?rs=${appConfig.rs}"></script>
<%-----end:  form需要加载的JS ----%>

<script type="text/javascript">

$j(document).ready(function () {
	__FMTExtend = {
		passwordReset_success:"<fmt:message key="passwordReset.success"/>",
	    appAdminList_selectAppAdmin:"<fmt:message key="appAdminList.selectAppAdmin"/>",
	    appAdminDetail_saveAppAdmin_success:"<fmt:message key="appAdminDetail.saveAppAdmin.success"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	

$j(document).ready(function () {
	searchAppAdmins(true,'');
	<c:if test="${(not empty param.direct) and (param.direct == 'add')}">
		createAppAdmin();
	</c:if>
	
	<c:if test="${not empty param.appAdminId}">
	editAppAdmin(${param.appAdminId});
</c:if>
	
});

</script>